<?php

/**
 * 台湾CMS系统 twCMS
 *
 * (c) cighsen02 <xiayu@959602.com>
 *
 * Create at：2025.05.02
*/

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\View\View;
use Illuminate\Validation\ValidationException;

/**
 * 会员权限及位置
 */
class GroupController extends Controller
{
    /**
     * 权限查看
     * 
     * @param Request $request
     * @param string $accountType
     * @return View
     */
    public function index(Request $request, string $accountType): View
    {
        return view('auth.group', ['title' => '会员等级', 'accountType' => $accountType]);
    }

    /**
     * 升级会员
     * 
     * @param Request $request
     * @param string $accountType
     * @return View
     */
    public function buy(Request $request, string $accountType): View
    {
        return view('auth.buy_group', ['title' => '升级会员', 'accountType' => $accountType]);
    }
}